import request from '@/utils/request'

const baseURL = process.env.VUE_APP_BASE_API

export function listHcMainOrder(query) {
  return request({
    url: '/systemIntegration/hcOrder/list',
    method: 'get',
    params: query
  })
}

export function getHcMainOrder(id) {
  return request({
    url: '/systemIntegration/hcOrder/getInfo/' + id,
    method: 'get'
  })
}

export function downloadInspectionOrder(url) {
  window.location.href = baseURL + "/common/download?fileName=" + encodeURI(url) + "&delete=" + false;
}
